import request from "@/utils/request"

export function seriesList(params) {
	return request.get("img/series", {
		params: params,
	}).then(res => {
		return res.data
	})
}

export function imageList(params) {
	return request.get("img/list", {
			params: params
		}).then(res => {
		return res.data
	})
}

export function imageItemList(params) {
	return request.get("img/item", {
		params: params
	}).then(res => {
		return res.data
	})
}

export function imageShow(params) {
	return request.get("img/show", {
		params: params
	}).then(res => {
		return res.data
	})
}

/**
 * 图片标签列表
 * @param {Object} params
 */
export function imageCategoryList(params) {
	return request.get("img/category", {
		params: params
	}).then(res => {
		return res.data
	})
}

/**
 * 获取图片文本描述
 * @param {Object} params
 */
export function imageContent(params) {
	return request.get("img/content", {
		params: params
	}).then(res => {
		return res.data
	})
}

/**
 * 下载图片
 * @param {Object} params
 */
export function imageDownLoad(params) {
	return request.post("img/download", params).then(res => {
		return res.data
	})
}


/**
 * 查询图片系列
 * @param {Object} params
 */
export function imageSeriesAll(params) {
	return request.get("img/series_all", {
		params: params
	}).then(res => {
		return res.data
	})
}

/**
 * 图片分享
 * @param {Object} params
 */
export function imageShare(params) {
	return request.post("img/share", params).then(res => {
		return res.data
	})
}

/**
 * 图片收藏
 * @param {Object} params
 */
export function imageCollection(params) {
	return request.post("img/collection", params).then(res => {
		return res.data
	})
}

/**
 * 壁纸专区
 * @param {Object} params
 */
export function imageSubjectCategory(params) {
	return request.get("img/subject", params).then(res => {
		return res.data
	})
}

/**
 * 壁纸系列详情
 * @param {Object} params
 */
export function imageSeriesDetail(params) {
	return request.get("img/series/show", params).then(res => {
		return res.data
	})
}

/**
 * 壁纸专区详情
 * @param {Object} params
 */
export function imageSubjectDetail(params) {
	return request.get("img/subject/detail", params).then(res => {
		return res.data
	})
}